package business;

import java.text.SimpleDateFormat;
import java.util.Calendar;

public class Utilerias {
	private static String str_formatoFecha = "EEEE, dd 'de' MMMM 'de' yyyy";
	private static String str_formatoFechaLog = "dd/MM HH:mm:ss";
	public static String fechaActual( ){
		String str_retVal = "";
		SimpleDateFormat sdf = new SimpleDateFormat(str_formatoFecha);
		Calendar cal_hoy = Calendar.getInstance();
		str_retVal = sdf.format(cal_hoy.getTime());
		return str_retVal;
	}
	
	private static String fechaLog(){
		String str_retVal = "";
		SimpleDateFormat sdf = new SimpleDateFormat(str_formatoFechaLog);
		Calendar cal_hoy = Calendar.getInstance();
		str_retVal = sdf.format(cal_hoy.getTime());
		return str_retVal;
	}
	
	public static String sistemaLog(String str_mensaje){
		return Utilerias.fechaLog()+" [" + str_mensaje + "] (Academias Log) ";
	}
}